package com.wysiwyg.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wysiwyg.admin.model.po.AdminUserChangePO;
import com.wysiwyg.admin.model.vo.UserChangeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户变更Mapper接口
 */
@Mapper
public interface UserChangeMapper extends BaseMapper<AdminUserChangePO> {

    /**
     * 根据用户ID查询变更记录
     */
    List<UserChangeVO> selectUserChangeList(@Param("userId") String userId);

    /**
     * 根据变更单号查询详情
     */
    UserChangeVO selectUserChangeByNo(@Param("changeNo") String changeNo);
}
